package com.ny.mapper;

import com.ny.entity.Devices;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DevicesMapper extends MongoRepository<Devices, String> {

    /**
     * 查询所有设备信息
     * @return 设备列表
     */
    List<Devices> findAll();
    
    List<Devices> findByName(String name);
    
    List<Devices> findByNameContaining(String name);

}